package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;

public class WechatMpActShaketicketCoupon implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 活动ID
     *
     * @mbg.generated
     */
    private String actId;

    /**
     * 奖项ID
     *
     * @mbg.generated
     */
    private String awardsId;

    /**
     * 卡券密码
     *
     * @mbg.generated
     */
    private String cardPsd;

    /**
     * 状态（0:未领取，1:已领取）
     *
     * @mbg.generated
     */
    private String status;

    /**
     * 公众号原始id
     *
     * @mbg.generated
     */
    private String jwid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActId() {
        return actId;
    }

    public void setActId(String actId) {
        this.actId = actId;
    }

    public String getAwardsId() {
        return awardsId;
    }

    public void setAwardsId(String awardsId) {
        this.awardsId = awardsId;
    }

    public String getCardPsd() {
        return cardPsd;
    }

    public void setCardPsd(String cardPsd) {
        this.cardPsd = cardPsd;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", actId=").append(actId);
        sb.append(", awardsId=").append(awardsId);
        sb.append(", cardPsd=").append(cardPsd);
        sb.append(", status=").append(status);
        sb.append(", jwid=").append(jwid);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActShaketicketCoupon other = (WechatMpActShaketicketCoupon) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getActId() == null ? other.getActId() == null : this.getActId().equals(other.getActId()))
            && (this.getAwardsId() == null ? other.getAwardsId() == null : this.getAwardsId().equals(other.getAwardsId()))
            && (this.getCardPsd() == null ? other.getCardPsd() == null : this.getCardPsd().equals(other.getCardPsd()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getActId() == null) ? 0 : getActId().hashCode());
        result = prime * result + ((getAwardsId() == null) ? 0 : getAwardsId().hashCode());
        result = prime * result + ((getCardPsd() == null) ? 0 : getCardPsd().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        return result;
    }
}